package com.dlc.shop.seckill.common.constant;

import com.dlc.shop.common.enums.MultiStockEnum;

/**
 * @author FrozenWatermelon
 * @date 2020/11/23
 */
public interface SeckillCacheNames {

    /**
     * 秒杀信息缓存
     */
    String SECKILL_BY_PROD_ID = "SeckillByProdId";

    /**
     * 秒杀信息缓存(通过秒杀商品skuId)
     */
    String SECKILL_BY_SECKILL_SKU_ID = "SeckillBySeckillSkuId";

    /**
     * 秒杀限流前缀
     */
    String SECKILL_LIMIT_PREFIX = "SECKILL_LIMIT_";

    /**
     * 秒杀路径前缀
     */
    String SECKILL_PATH_PREFIX = "SECKILL_PATH_";

    /**
     * 秒杀商品库存
     */
    String SECKILL_SKU_STOCKS_PREFIX = "SECKILL_SKU_STOCKS_";

    /**
     * 秒杀订单库存记录
     */
    String SECKILL_ORDER_LOCK_LOG = MultiStockEnum.SECKILL.value() +  "seckill_order_lock_log";

    /**
     * 秒杀活动商品的购买数量
     */
    String SECKILL_BUY_NUM = MultiStockEnum.SECKILL.value() +  "buy:";
}
